package com.xbb.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xbb.entity.Membership;
import com.xbb.entity.dto.MembershipDto;
import com.xbb.mapper.MemberShipMapper;
import com.xbb.service.MemberShipService;
@Service
public class MemberShipServiceImpl implements MemberShipService{

	@Autowired
	MemberShipMapper memberShipMapper;
	
	@Override
	public List<MembershipDto> getMems(MembershipDto membershipDto) {
		return memberShipMapper.getMems(membershipDto);
	}

	@Override
	public boolean addMem(Membership membership) {
		return memberShipMapper.addMem(membership);
	}

	@Override
	public boolean updateMem(Membership membership) {
		return memberShipMapper.updateMem(membership);
	}

	@Override
	public boolean delMem(int memid) {
		return memberShipMapper.delMem(memid);
	}

	
	
}
